package cn.tx.service.Impl;

import cn.tx.model.Course;
import cn.tx.dao.CourseDao;
import cn.tx.model.Student;
import cn.tx.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

@Service
public class CourseServiceImpl implements CourseService{

    @Autowired
    private CourseDao courseDao;

    @Override
    public Course findByUserName(String username){
        return courseDao.findByUserName(username);
    }
    @Override
    public int addCourse(Course course){
        return courseDao.addCourse(course);
    }
    @Override
    public List<Course> findList(Map<String, Object> querymap){
        return courseDao.findList(querymap);
    }
    @Override
    public List<Course> findAll(){
        return courseDao.findAll();
    }
    @Override
    public int findTotal(Map<String, Object> querymap){
        return courseDao.findTotal(querymap);
    }
    @Override
    public int UpdateCourseById(Course course){
        return courseDao.UpdateCourseById(course);
    }
    @Override
    public int delete(String ids){
        return courseDao.delete(ids);
    }

    @Override
    public int edit(Course course) {
        return courseDao.edit(course);
    }


}
